package com.liyz.serviceuser.controller;

import com.liyz.common.util.R;
import com.liyz.common.vo.UserVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/{id}")
    public UserVO get(@PathVariable("id") Integer id) {
        UserVO user = new UserVO();
        user.setId(id);
        user.setName("Liyz In BeiJing");
        //return new R<>(user);
        return user;
    }

}
